<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<table width="100%">
	<tr>
		<td id="announcements_title">
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<s:text name="announcement.header"></s:text>
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<s:iterator value="list">
				<table class="common-text" width="100%">

					<tr>
						<td colspan="2" width="100%" align="left" bgcolor="#aeddac">
							<b><font size="3" color="#0000cc"> <s:property
										value="subject" /> </font>
							</b>
						</td>
					</tr>
					<tr>
						<td width="150" bgcolor="#ddffec">
							<b><s:text name="announcement.date" />
							</b>
						</td>
						<td>
							<s:if test="%{#attr.user == null}">
								<s:if test="%{#attr.generalOptions!=null}">
									<s:date name="date"
										format="%{#attr.generalOptions.defaultDateTimeFormat}" />
								</s:if>
								<s:else>
									<s:date name="date" format="dd/MM/yyyy" />
								</s:else>
							</s:if>
							<s:else>
								<s:date name="date" format="%{#attr.user.dateFormat.format}" />
							</s:else>
						</td>
					</tr>

					<tr>
						<td width="150" bgcolor="#ddffec">
							<b><s:text name="announcement.name" />
							</b>
						</td>
						<td>
							<s:property value="name" />
						</td>
					</tr>
					<s:if test="%{email != null}">
						<tr>
							<td width="150" bgcolor="#ddffec">
								<b><s:text name="announcement.email" />
								</b>
							</td>
							<td>
								<s:a href="mailto:%{email}">
									<s:property value="email" />
								</s:a>
							</td>
						</tr>
					</s:if>
					<s:if test="%{url != null}">
						<tr>
							<td width="150" bgcolor="#ddffec">
								<b><s:text name="announcement.link" />
								</b>
							</td>
							<td>
								<s:a
									href="javascript:PPPCC=window.open('%{#attr.url}','PrintPackPaper','scrollbars=yes,resizable=false');PPPCC.focus()"
									cssClass="navi-link">
									<s:property value="url" />
								</s:a>
							</td>
						</tr>
					</s:if>
					<tr>
						<td width="150" bgcolor="#ddffec">
							<b><s:text name="announcement.message" />
							</b>
						</td>

						<td width="80%">
							<s:property value="message" escape="false"/>
						</td>
					</tr>
				</table>
			</s:iterator>
		</td>
	</tr>

	<tr>
		<td width="100%" align="center" bgcolor="#cfebd7">
			<a href="#announcements_title"><s:text name="Top"></s:text> </a>
		</td>
	</tr>
</table>





